package com.qianfeng.front.controller;

import com.qianfeng.ls.entity.UserEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;

@Controller
public class CustomerController {

    @RequestMapping("login")
    public String login(String userName, String userPass, HttpServletRequest request){

        UserEntity ue = new UserEntity();
        ue.setAid(2);
        request.getSession().setAttribute("customer",ue);

        return "index"; //我们想要跳转到另外一个index,并不是调到index.jsp
    }
}
